/* 奖励弹窗样式 */
.reward-popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 24px 32px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
  animation: rewardPopIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1000;
  min-width: 300px;
  max-width: 400px;
}

@keyframes rewardPopIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3) rotate(-10deg);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1) rotate(5deg);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
}

.reward-popup h3 {
  color: white;
  margin: 0 0 20px 0;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.reward-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reward-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.15);
  padding: 12px 16px;
  border-radius: 10px;
  color: white;
  animation: rewardItemSlide 0.6s ease-out;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease;
}

.reward-item:hover {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.2);
}

@keyframes rewardItemSlide {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.reward-item .icon {
  font-size: 28px;
  min-width: 32px;
  text-align: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.reward-item .text {
  font-size: 18px;
  font-weight: 600;
  flex: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.reward-item .desc {
  font-size: 13px;
  opacity: 0.85;
  font-weight: normal;
  color: rgba(255, 255, 255, 0.9);
}

/* 不同类型奖励的特殊样式 */
.reward-item.cultivation {
  background: rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.4);
}

.reward-item.spirit-stone {
  background: rgba(64, 224, 208, 0.2);
  border-color: rgba(64, 224, 208, 0.4);
}

.reward-item.item {
  background: rgba(255, 105, 180, 0.2);
  border-color: rgba(255, 105, 180, 0.4);
}

/* 奖励项动画延迟（逐个出现效果） */
.reward-item:nth-child(1) {
  animation-delay: 0.1s;
}

.reward-item:nth-child(2) {
  animation-delay: 0.2s;
}

.reward-item:nth-child(3) {
  animation-delay: 0.3s;
}

.reward-item:nth-child(4) {
  animation-delay: 0.4s;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .reward-popup {
    min-width: 260px;
    max-width: 90vw;
    padding: 20px 24px;
  }

  .reward-popup h3 {
    font-size: 20px;
  }

  .reward-item .text {
    font-size: 16px;
  }

  .reward-item .icon {
    font-size: 24px;
  }
}
